package com.feign.demo.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by CHUMI on 2018/1/2.
 */
@FeignClient(value = "service-hi")
public interface  FeignTestForOneService {  //针对具体的服务进行调用，使用其他服务提供的接口
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
